class Dog:
    def __init__(self, name, color):
        self.name = name
        self.color = color

    def bark(self):
        print("汪汪")

    def wag(self):
        print("摇尾巴")


dog1 = Dog("小黄", "黄色")
dog1.bark()
dog1.wag()
